﻿

#region Using directives
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Indeco.G24.Web.UI;
#endregion
namespace Indeco.G24.Website.Admin
{
    public partial class NhaCungCapDiaBan : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            FormUtil.RedirectAfterUpdate(GridView1, "NhaCungCapDiaBan.aspx?page={0}");
            FormUtil.SetPageIndex(GridView1, "page");
        }

        protected void GridView1_SelectedIndexChanged(object sender, EventArgs e)
        {
            string urlParams = string.Format("IDDiaBan={0}&IDNhaCungCap={1}", GridView1.SelectedDataKey.Values[0], GridView1.SelectedDataKey.Values[1]);
            Response.Redirect("NhaCungCapDiaBanEdit.aspx?" + urlParams, true);
        }
    }
}


